#ifndef EDITWINDOW_H
#define EDITWINDOW_H

#include <QDialog>
#include <QDate>
#include "eventshandler.h"
#include <QTreeWidgetItem>

namespace Ui {
    class EditWindow;
}

class EditWindow : public QDialog
{
    Q_OBJECT

public:
    explicit EditWindow(QWidget *parent);
    explicit EditWindow(QDate chsnDate, EventsHandler *events);
    ~EditWindow();
    void FillTree();

private:
    Ui::EditWindow *ui;
    QDate chsDate;
    EventsHandler *evnts;
    Event *ptmp;
    Event c_tmp;

private slots:
    void on_treeWidget_itemClicked(QTreeWidgetItem* item, int column);
    void on_RemoveButton_clicked();
    void on_EditButton_clicked();
};

#endif // EDITWINDOW_H
